package com.bst.bsj.bops.web.biz.impl;

import java.util.List;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bst.bsj.bops.web.biz.AreaService;
import com.bst.bsj.bops.web.biz.UserMessageService;
import com.bst.bsj.common.dal.daointerface.AreaDAO;
import com.bst.bsj.common.dal.daointerface.UserMessageDAO;
import com.bst.bsj.common.dal.dataobject.Area;
import com.bst.bsj.common.dal.dataobject.UserMessage;
import com.homewaimai.common.lang.Paginator;
import com.homewaimai.common.lang.Result;
import com.homewaimai.common.lang.ResultSupport;

@Service
public class UserMessageServiceImpl implements UserMessageService {

  private static final Log logger = LogFactory.getLog(UserMessageServiceImpl.class);

  @Autowired
  private UserMessageDAO userMessageDao;

  @Override
  public Boolean batchInsert(List<UserMessage> umList) {
    Boolean flag=true;
    try {
      userMessageDao.batchInsert(umList);
      
    } catch (Exception e) {
      flag=false;
    }
    return flag;
     
  }

  @Override
  public void deleteByParams(Map<String, Object> paramsMap) {
    userMessageDao.deleteByParams(paramsMap);    
  }

  
  
  
}
